package com.zero.clinic.service.impl;

import com.zero.clinic.mapper.ExamMapper;

import com.zero.clinic.pojo.Exam;
import com.zero.clinic.pojo.ExamExample;
import com.zero.clinic.service.ExamService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ExamServiceImpl implements ExamService {

    @Resource
    private ExamMapper examMapper;

    @Override
    public List<Exam> selectByExample(ExamExample example) {
        return examMapper.selectByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Long examId) {
        return examMapper.deleteByPrimaryKey(examId);
    }

    @Override
    public int insert(Exam record) {
        return examMapper.insert(record);
    }

    @Override
    public int insertSelective(Exam record) {
        return examMapper.insertSelective(record);
    }

    @Override
    public Exam selectByPrimaryKey(Long examId) {
        return examMapper.selectByPrimaryKey(examId);
    }

    @Override
    public int updateByPrimaryKeySelective(Exam record) {
        return examMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int deleteByIds(String[] examIds) {
        return examMapper.deleteByIds(examIds);
    }
}
